#!/bin/bash
# Useless-Files-Remover


#variable declariations
USELESSFOLDERS="8x8/actions
8x8/apps
8x8/categories
8x8/devices
8x8/mimetypes
8x8/places
8x8/status
8x8/stock
22x22/stock
48x48/categories
48x48/emblems
48x48/places
48x48/status";

USELESSICONS="8x8/emblems/emblem-package.png
8x8/emblems/emblem-trash.png
48x48/actions/apply.png
48x48/actions/dialog-apply.png
48x48/actions/gohome.png
48x48/actions/go-home.png
48x48/actions/gtk-apply.png
48x48/actions/gtk-home.png
48x48/actions/gtk-yes.png
48x48/actions/kfm_home.png
48x48/actions/mail_generic.png
48x48/actions/redhat-home.png
48x48/actions/stock_home.png
48x48/apps/application-community.png
48x48/apps/application-proprietary.png
48x48/apps/gnome-favorites.png
48x48/apps/gnome-netstatus-disconn.png
48x48/apps/gnome-netstatus-error.png
48x48/apps/gnome-netstatus-idle.png
48x48/apps/gnome-netstatus-rx.png
48x48/apps/gnome-netstatus-tx.png
48x48/apps/gnome-netstatus-txrx.png
48x48/apps/gnome-panel-clock.png
48x48/apps/gnome-status.png
48x48/apps/shares.png
48x48/devices/chardevice.png
48x48/devices/display.png
48x48/devices/gnome-dev-symlink.png
48x48/devices/video-display.png
48x48/devices/xfce4-display.png
48x48/mimetypes/application-x-m4.png
48x48/mimetypes/gnome-fs-regular.png
48x48/mimetypes/gtk-file.png
48x48/mimetypes/text-plain.png
48x48/mimetypes/text-x-preview.png
48x48/stock/stock_3d-favourites.png
48x48/stock/stock_calc-accept.png
48x48/stock/stock_form-time-field.png
48x48/stock/stock_internet.png
48x48/stock/stock_mail.png
48x48/stock/stock_mark.png
48x48/stock/stock_new.png
48x48/stock/stock_trash_full.png
";


#here start the script

#removing useless folders
for file in $USELESSFOLDERS
do
	rm -R -f $file;
done

#removing useless .png files
for file in $USELESSICONS
do
	rm -f $file;
done

exit 0
